package com.example.demo.service.interfaces;

import com.example.demo.domain.dto.UserLoginDto;
import com.example.demo.enums.UserPermission;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface LoginService {
    public void addUser(HttpServletRequest request, HttpServletResponse response, String id, List<UserPermission> permissions);

    public UserLoginDto getUser(HttpServletRequest request);

    public void removeUser(HttpServletRequest request, HttpServletResponse response);


    public Map<String, UserLoginDto> getUserMap();

    public void setUserMap(Map<String, UserLoginDto> map);


}
